package com.wHitE.service.impl;

import com.wHitE.dao.LoginDao;
import com.wHitE.dao.impl.LoginDaoImpl;
import com.wHitE.service.LoginService;

public class LoginServiceImpl implements LoginService {
    private LoginDao loginDao = new LoginDaoImpl();
    private String msg;

    @Override
    public String userLogin(String username, String password) {
        msg = "登录失败!请检查账号或者密码是否正确";
        if (password.equals(loginDao.userLogin(username))) {
            msg = "success";
        }
        return msg;
    }
}
